﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CS.BLL;

namespace chaoshiguanli
{
    public partial class denglu : Form
    {
        public denglu()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)            
        {
            mimaguanli us = new mimaguanli();
            string name = txtUserName.Text;
            string pass = txtUserPass.Text;
            if (us.UserLogin(name, pass))
            {
                MessageBox.Show("登陆成功");
                this.Hide();
            }
            else
            {
                MessageBox.Show("用户名密码错误");
            }
        }

        private void denglu_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }
    }
}
